﻿using Devonline.Core;

namespace Devonline.MessageCenter
{
    /// <summary>
    /// 消息中心配置项
    /// </summary>
    public class McSetting : AppSetting
    {
        public McSetting()
        {
            MessageCache = "MC_";
            ClientId = "clientId";
            HubEndpint = "/message";
        }

        /// <summary>
        /// 消息中心在 redis 中记录的消息前缀
        /// </summary>
        public string MessageCache { get; set; }
        /// <summary>
        /// 消息中心使用的获取客户端标识的变量名
        /// </summary>
        public string ClientId { get; set; }
        /// <summary>
        /// 服务器启动的终结点地址
        /// </summary>
        public string HubEndpint { get; set; }
        /// <summary>
        /// redis 配置连接字符串
        /// </summary>
        public string Redis { get; set; }
    }
}
